Skip to content

Knowledge search: a base tab or Search Code runs the typed words again there - #433

Merged
nambok merged 1 commit into
mainfrom
fix/command-palette-scope
Nov 16, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/command-palette-scope

Conversation

@nambok

@nambok nambok commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

On the Knowledge page's built-in search, the base tabs (All, Code, Work, Infrastructure, Logs, Security, Knowledge) and "Search Code" in a base's panel changed nothing on screen: they only set which bases the next press of Search would ask, and the tabs added to each other. Now each picks one base and runs the typed words again there.

Changes

  • dashboard/src/components/knowledge/builtin.tsx: one base at a time (BuiltinKey | null instead of a list); a new base re-runs what is typed, or the search on screen; a click on a tab keeps focus in the box, a key press leaves it on the tab; the panel hands focus back to the box instead of the card (no 50 ms timer); the last answer stays on screen, marked aria-busy, until the new one is in, and its summary names where it was really searched; a slow answer for an earlier tab never replaces a later one.
  • dashboard/e2e/knowledge-builtin.spec.ts: seven new tests (tab re-runs and keeps focus, Search Code in the panel, nothing typed, keyboard Tab/Space/Escape, no blanking while busy, a slow first tab, 390px width); the existing filter test no longer presses Search after a tab.

Verification

  • The new tests failed on main first (focus, single base, re-run, busy, race).
  • npm run typecheck, npm run lint: clean.
  • Static build, knowledge-builtin, knowledge, knowledge-page, list-and-palette, topbar, shell-menu, layout, no-mid-word-breaks, no-sideways-scroll, readable-text: 413 passed, 0 failed.

…n there

The tabs beside the built-in search only changed which bases the next
press of Search would ask, and added to each other; "Search Code" in a
base's panel closed the panel and did the same, so the results on screen
never changed. Now a tab picks one base and runs what is typed (or the
search on screen) again there, focus stays in the box after a click,
the panel hands focus back to the box, the last answer stays on screen
marked busy until the new one is in, and a slow answer for an earlier
tab never replaces a later one.
@nambok
nambok merged commit 425b28e into main Nov 16, 2026
18 of 20 checks passed
@nambok
nambok deleted the fix/command-palette-scope branch November 16, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant